<template>
	<view class="driver-life-container">
		<!-- 页面标题 -->
		<view class="page-header">
			<text class="page-title">司机生活</text>
		</view>
		
		<!-- 主要内容区域 -->
		<view class="main-content">
			<!-- 租买车按钮 -->
			<view class="action-button" @click="goToRentCar">
				<text class="button-text">租买车</text>
			</view>
			
			<!-- 餐饮超市按钮 -->
			<view class="action-button" @click="goToFoodSupermarket">
				<text class="button-text">餐饮超市</text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	name: 'DriverLife',
	data() {
		return {
			
		}
	},
	methods: {
		// 跳转到租买车页面
		goToRentCar() {
			uni.navigateTo({
				url: '/pages/driver-life/rent-car'
			});
		},
		
		// 跳转到餐饮超市页面
		goToFoodSupermarket() {
			uni.navigateTo({
				url: '/pages/driver-life/food-supermarket'
			});
		}
	}
}
</script>

<style scoped>
.driver-life-container {
	min-height: 100vh;
	background-color: #f5f5f5;
}

.page-header {
	padding: 40rpx 30rpx 20rpx;
	background-color: #fff;
	border-bottom: 1px solid #eee;
}

.page-title {
	font-size: 36rpx;
	font-weight: bold;
	color: #333;
}

.main-content {
	padding: 60rpx 30rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
}

.action-button {
	width: 300rpx;
	height: 100rpx;
	background: linear-gradient(135deg, #2455E1, #4A90E2);
	border-radius: 50rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 8rpx 20rpx rgba(36, 85, 225, 0.3);
	transition: all 0.3s ease;
}

.action-button:active {
	transform: scale(0.95);
	box-shadow: 0 4rpx 10rpx rgba(36, 85, 225, 0.2);
}

.button-text {
	color: #fff;
	font-size: 32rpx;
	font-weight: bold;
}
</style>
